package ecode

/**
 * @Description: 错误码
 // 基本类型 code
	"201": "error",
	"200": "请求成功",
	"-1":  "系统繁忙，此时请开发者稍候再试",

	// project
	"30001": "未找到对应的项目",
	"30002": "权限错误",

	// 请求类
	"43001": "需要 GET 请求",
	"43002": "需要 POST 请求",
	"45011": "API 调用太频繁，请稍候再试",
	"48004": "API 接口被封禁，请联系管理员",
	// 数据添加
	"40030": "数据错误,请检查参数",
	"40031": "新建项目失败,请检查参数",
	"40032": "未找到相应的数据",
	"40035": "不合法的参数",
	"40038": "不合法的请求格式",
	"40039": "duplicate 参数",

	// 用户
	"40001": "用户名已经注册",
	"40002": "密码错误",
	"40003": "userToken 错误",
	"40004": "用户被冻结不能登录，请联系管理员！",
	"40005": "系统注册关闭,如有问题请联系管理员",
	"40006": "权限错误",
	// mock
	"40010": "未找到对应的mock",
	// 定时任务
	"41001": "任务名已经存在,请检查参数",
	// 单词
	"50001": "已经存在",
	// 活动相关
	"6001": "活动未开始",
	"6002": "活动已结束",
	"6003": "活动未开启",
	"6201": "已签到",
**/

var (
	OK          = New(200, "OK", "请求成功")
	SystemError = New(-1, "SystemError", "系统繁忙，此时请开发者稍候再试")
	Error       = New(201, "Error", "error")

	// project
	ProjectNotFound = New(30001, "ProjectNotFound", "未找到对应的项目")
	PermissionError = New(30002, "PermissionError", "权限错误")

	// 请求类
	NeedGetRequest  = New(43001, "NeedGetRequest", "需要 GET 请求")
	NeedPostRequest = New(43002, "NeedPostRequest", "需要 POST 请求")
	TooFrequent     = New(45011, "TooFrequent", "API 调用太频繁，请稍候再试")
	APIForbidden    = New(48004, "APIForbidden", "API 接口被封禁，请联系管理员")

	// 数据添加
	DataError            = New(40030, "DataError", "数据错误,请检查参数")
	ProjectAddError      = New(40031, "ProjectAddError", "新建项目失败,请检查参数")
	DataNotFound         = New(40032, "DataNotFound", "未找到相应的数据")
	InvalidParams        = New(40035, "InvalidParams", "不合法的参数")
	InvalidRequestFormat = New(40038, "InvalidRequestFormat", "不合法的请求格式")
	DuplicateParams      = New(40039, "DuplicateParams", "duplicate 参数")

	// 用户
	UsernameAlreadyExists = New(40001, "UsernameAlreadyExists", "用户名已经注册")
	PasswordError         = New(40002, "PasswordError", "密码错误")
	UserTokenError        = New(40003, "UserTokenError", "userToken 错误")
	UserFrozen            = New(40004, "UserFrozen", "用户被冻结不能登录，请联系管理员！")
	RegisterClosed        = New(40005, "RegisterClosed", "系统注册关闭,如有问题请联系管理员")
	PermissionDenied      = New(40006, "PermissionDenied", "权限错误")

	// mock
	MockNotFound = New(40010, "MockNotFound", "未找到对应的mock")

	// 定时任务
	TaskNameAlreadyExists = New(41001, "TaskNameAlreadyExists", "任务名已经存在,请检查参数")

	// 单词
	WordAlreadyExists = New(50001, "WordAlreadyExists", "已经存在")

	// 活动相关
	ActivityNotStart = New(6001, "ActivityNotStart", "活动未开始")
	ActivityEnd      = New(6002, "ActivityEnd", "活动已结束")
	ActivityNotOpen  = New(6003, "ActivityNotOpen", "活动未开启")
	ActivitySign     = New(6201, "ActivitySign", "已签到")
)
